
package com.android.finaltracer.channel;

import com.android.finaltracer.model.DataFormatBasic;
import com.android.finaltracer.model.DataFormatInterface;

public class Channel implements Communicate {
    // public EventNotify mEventNotify;

    public static final String FINALTRACER_TYPE = "finaltracer_type";
    public static final int TYPE_UNKNOWn = 0;
    public static final int TYPE_SMS = TYPE_UNKNOWn + 1;
    public static final int TYPE_HTTP = TYPE_SMS + 1;

    public static final String TAG_FROM = "finaltracer_from";
    public static final String TAG_BODY = "finaltracer_body";

    public interface ChannelEventCallback {
        public void onReceive(String from, DataFormatInterface dfb);

        public void onHeartbeatResult(boolean result);

        public void onNetworkStateChanged(boolean available);
    }

    public ChannelEventCallback mCallback;
    protected boolean mIsAvailable = true;

    @Override
    public void send(String target, DataFormatBasic dataFormatBasic) {
        // TODO Auto-generated method stub

    }

    public Channel(ChannelEventCallback cb) {
        super();
        this.mCallback = cb;
    }

    public boolean isAvailable() {
        return mIsAvailable;
    }

    @Override
    public boolean send(String target, DataFormatBasic dataFormatBasic,
            int sendType) {
        // TODO Auto-generated method stub
        return false;
    }
}
